package com.ja.openchat.ui.found;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.ViewGroup;

import androidx.annotation.Nullable;

import com.ja.openchat.BR;
import com.ja.openchat.R;
import com.ja.openchat.databinding.FragmentOpenchatCirclePublishBinding;
import com.ja.openchat.viewmodels.GoChatCirclePublishViewModel;

import me.goldze.mvvmhabit.base.BaseFragment;

//发布动态
public class GoChatCirclePublishFragment extends BaseFragment<FragmentOpenchatCirclePublishBinding, GoChatCirclePublishViewModel> {

    @Override
    public int initContentView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        return R.layout.fragment_openchat_circle_publish;
    }

    @Override
    public int initVariableId() {
        return BR.viewModel;
    }

    @Override
    public void initView() {
        super.initView();
//        binding.recyclerView.addItemDecoration(new DefaultItemDecoration(getResources().getColor(R.color.white), SizeUtils.dp2px(9), SizeUtils.dp2px(9)));
        binding.titleBar.setOnRightBgListener(v -> {
            //发布
            viewModel.finish();
        });
    }

}